package com.xtkj.accountjava.service;


import com.xtkj.accountjava.entity.AccountBookEntity;
import com.xtkj.accountjava.entity.UserAccountBookEntity;
import com.xtkj.accountjava.entity.UserEntity;

import java.util.Date;
import java.util.List;

public interface AccountBookService {

    AccountBookEntity findAccountBookAndCategorysById(int id);
    List<AccountBookEntity> findOnlyAccountBooksByIds(List ids);
    AccountBookEntity findOnlyAccountBooksById(int id);
    List<AccountBookEntity> findAllAccountBooksAndCategorys();
    List<AccountBookEntity> findAllAccountBooksAndCategorysByPage(int currPage,int pageSize);
    List<UserAccountBookEntity> findAllAccountBooksByUserId(int userId);

    UserAccountBookEntity addUserAccountBook(UserAccountBookEntity userAccountBook);
    UserAccountBookEntity updateUserAccountBook(UserAccountBookEntity userAccountBook);

    UserAccountBookEntity add_default_account_book(int userId);
}
